//
//  mttImageGroup.h
//  mtt
//
//  Created by Gerfried Mikusch on 30.09.10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "mttImageGroupDelegate.h"
#import "mttRotationRecognizer.h"


@interface mttImageGroup : UIView <UIGestureRecognizerDelegate, UIActionSheetDelegate> {

	
	UITapGestureRecognizer *tapRecognizer;
	UITapGestureRecognizer *doubleTapRecognizer;
	UITapGestureRecognizer *tapRecTwoFingers;
	UILongPressGestureRecognizer *longPressRecognizer;
	UIPanGestureRecognizer *panRecognizer;
	mttRotationRecognizer *pinRotationRecognizer;
	UIRotationGestureRecognizer *rotationRecognizer;
	UIPinchGestureRecognizer *pinchRecognizer;
	
	NSNumber *imageGroupKey;
	
	BOOL hidePins;
	
	id<mttImageGroupDelegate> delegate;
	
}

-(void)resizeToSubviews;
-(void)hideImagePins:(BOOL)hide;
-(BOOL)isImageInGroup:(mttImage*) thisImage;

@property (nonatomic, retain) UITapGestureRecognizer *tapRecognizer;
@property (nonatomic, retain) UITapGestureRecognizer *doubleTapRecognizer;
@property (nonatomic, retain) UITapGestureRecognizer *tapRecTwoFingers;
@property (nonatomic, retain) UILongPressGestureRecognizer *longPressRecognizer;
@property (nonatomic, retain) UIPanGestureRecognizer *panRecognizer;
@property (nonatomic, retain) mttRotationRecognizer *pinRotationRecognizer;
@property (nonatomic, retain) UIRotationGestureRecognizer *rotationRecognizer;
@property (nonatomic, retain) UIPinchGestureRecognizer *pinchRecognizer;

@property (nonatomic, retain) NSNumber *imageGroupKey;

@property (nonatomic, assign) BOOL hidePins;

@property (nonatomic, assign) id<mttImageGroupDelegate> delegate;

@end
